package com.xzzz.irda.auth.core.exception;


import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

/**
 * 过滤器异常处理
 *
 * @author wangyf
 * 
 */
public interface AuthFailureHandler {

    /**
     *
     * 过滤器异常处理
     * @param request request
     * @param response response
     * @param exception 异常信息
     * @throws IOException io
     * @throws ServletException servlet
     */
    void onAuthenticationFailure(ServletRequest request, ServletResponse response,
                                 Exception exception) throws IOException, ServletException;

}
